import React, { useState, useEffect } from 'react';
import {
ShoppingBag,
ShieldCheck,
Info,
ArrowRight,
Search,
Menu,
X,
ChevronRight,
Gavel,
History,
Lock
} from 'lucide-react';
// Mock Data for Art Pieces
const ART_ITEMS = [
{
id: 1,
title: "Ancestral Echoes Mask",
artist: "Kwadwo Afari",
basePrice: 450,
category: "Sculpture",
image: "https://images.unsplash.com/photo-1518998053574-53f0201f9b0d?auto=format&fit=crop&q=80&w=800",
description: "Hand-carved ebony wood with authentic copper inlays."
},
{
id: 2,
title: "Continuity of Spirit",
artist: "Zanele Mbeki",
basePrice: 1200,
category: "Canvas",
image: "https://images.unsplash.com/photo-1582555172866-f73bb12a2ab3?auto=format&fit=crop&q=80&w=800",
description: "Oil on canvas exploring the lineage of the Great Zimbabwe."
},
{
id: 3,
title: "Terracotta Warrior Head",
artist: "Ifé Bronze Works",
basePrice: 850,
category: "Artifact",
image: "https://images.unsplash.com/photo-1549490349-8643362247b5?auto=format&fit=crop&q=80&w=800",
description: "A reimagining of 12th-century Yoruba craftsmanship."
},
{
id: 4,
title: "Market Day Vibrations",
artist: "Oluwatobi J.",
basePrice: 320,
category: "Textile",
image: "https://images.unsplash.com/photo-1513519245088-0e12902e5a38?auto=format&fit=crop&q=80&w=800",
description: "Woven kente patterns integrated into contemporary street art."
}
];
const App = () => {
const [isVerified, setIsVerified] = useState(false);
const [showVerification, setShowVerification] = useState(false);
const [verifying, setVerifying] = useState(false);
const [cart, setCart] = useState([]);
const [equityMultiplier, setEquityMultiplier] = useState(4.5); // 450% surcharge for unverified
// Calculations
const calculatePrice = (basePrice) => {
return isVerified ? basePrice : basePrice * equityMultiplier;
};
const handleVerify = () => {
setVerifying(true);
// Simulating external check at checkingRace.com
setTimeout(() => {
setIsVerified(true);
setVerifying(false);
setShowVerification(false);
}, 2500);
};
return (
{/* Top Banner */}
{isVerified
? "Verification Confirmed: Heritage Discount Applied"
: "Notice: Equity Pricing in Effect for Non-Descendants"}
{/* Navigation */}
setShowVerification(true)}
className={`flex items-center gap-2 px-4 py-1.5 rounded-full text-xs font-semibold border transition-all ${
isVerified
? "border-green-500 text-green-500"
: "border-amber-600 text-amber-500 hover:bg-amber-600/10"
}`}
>
{isVerified ? "VERIFIED" : "VERIFY STATUS"}
{cart.length > 0 && (
{cart.length}
)}
{/* Hero Section */}
{/* Pricing Notice */}
{!isVerified && (
Equity Pricing Active
You are currently being charged the Global Reparations Premium (450%) .
This fund supports the artists and their home communities directly.
Are you a descendant? Submit your pass to bypass the surcharge.
setShowVerification(true)}
className="w-full md:w-auto px-6 py-2 bg-amber-600 text-white rounded font-bold text-sm"
>
START VERIFICATION
)}
{/* Art Grid */}
{ART_ITEMS.map((item) => (
{!isVerified && (
REPARATIONS PRICE APPLIED
)}
{item.title}
{isVerified ? (
${item.basePrice}
) : (
${item.basePrice}
${calculatePrice(item.basePrice)}
)}
{item.artist}
setCart([...cart, item])}
className="mt-auto border border-stone-700 py-2 text-xs font-bold hover:bg-stone-100 hover:text-black transition-colors"
>
ADD TO COLLECTION
))}
{/* Footer */}
OUR MISSION
MyAfricanArt.com is more than a marketplace. It is a financial instrument of restorative justice.
We ensure that the economic flow follows the cultural flow, correcting centuries of extraction.
VERIFICATION INFO
Verification is handled externally via checkingRace.com . We do not store biometric
or ancestral data. Once verified, your browser will hold an encrypted "Pass" token.
LEGAL
Prices are non-negotiable. Surcharges are automatically allocated to our
Pan-African Artist Trust. By browsing, you agree to Equity Pricing.
{/* Verification Modal / Overlay */}
{showVerification && (
setShowVerification(false)}
className="absolute top-4 right-4 text-stone-500 hover:text-white"
>
{!verifying ? (
Heritage Verification
Please connect to your checkingRace.com profile to verify your "n-word pass"
or ancestral lineage status. This will unlock the 75% Heritage Discount.
CONNECT TO CHECKINGRACE.COM
setShowVerification(false)}
className="w-full border border-stone-700 hover:border-stone-500 py-3 rounded font-bold transition-colors text-xs text-stone-400"
>
CONTINUE WITH EQUITY PRICING
) : (
Verifying Passport...
Scanning database for lineage records...
)}
)}
);
};
export default App;